package com.jxy.bean.constant;

import com.jxy.bean.ClassFile;
import com.jxy.tool.Tool;

import java.io.DataInputStream;

public class IntegerInfo extends ConstantPool {
    public int bytes;

    public IntegerInfo(DataInputStream dis, ClassFile cf) {
        super(ConstantPoolTag.CONSTANT_Integer.getTag(), cf);
        bytes = Tool.readU4(dis);
    }

    @Override
    public String toString() {
        return ConstantPoolTag.CONSTANT_Integer.getType() + "{tag:" + getTag() + ", bytes=" + bytes + "}";
    }
}
